package com.zyg.apart.service;

import com.github.pagehelper.PageInfo;
import com.zyg.apart.model.Role;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface RoleService {

    int editRole(Role role);

    Role getRoleById(Integer id);

    PageInfo<Map<String, Object>> getAllRole(Integer currentPage);

    List<Map<String,Object>> getAllRoleName();
}
